import request from '@/utils/request'

// 抬头列表
export const api_invoice_list = params => request.get('invoice/userInvoiceLists', {
	params
})
// 新建抬头
export const api_invoice_add = params => request.post('invoice/invoiceTitleAdd', params)
// 修改抬头
export const api_invoice_edit = params => request.post('invoice/invoiceTitleEdit', params)
// 删除抬头
export const api_invoice_del = params => request.post('invoice/invoiceTitleDel', params)
// 抬头详情
export const api_invoice_detail = params => request.get('invoice/invoiceTitleDetail', {
	params
})

// 申请开票
export const api_invoice_apply = params => request.post('invoice/invoiceAdd', params)
// 发票配置
export const api_invoice_config = params => request.get('invoice/getInvoiceConfig', {
	params
})

